Uncheck Affect Change Bars

Is there a DXL script the uncheck Affect Change Bars on multiple attributes? I don't want to go through opening each attribute and unchecking it.

Thanks
vppatel - Mon Jan 30 14:12:39 EST 2012

Re: Uncheck Affect Change Bars
SystemAdmin - Mon Jan 30 18:07:02 EST 2012

Here's a basic script that will uncheck the "Affect Change Bars" property on all non System and Non DXL type attribute definitions within a module. It assumes that you have access rights to modify these attribute definitions.
 

AttrType at
AttrDef ad
for ad in current Module do {
    if (ad.system) {
                print ad.name " [SYSTEM ATTR - No Change]\n\n" //Cannot modify built-in System attributes
                }
        elseif (ad.dxl) print ad.name " [DXL ATTR - No Change]\n\n" //Not applicable to DXL attributes
 
        else {
                ad = modify(ad, setBars, false) //Apply to Custom defined attributes only
                print ad.name " [CUSTOM ATTR - Change applied]\n\n"
                }
 
 }

 

 


Paul Miller
Melbourne, Australia

 

 

Re: Uncheck Affect Change Bars
vppatel - Tue Jan 31 17:17:22 EST 2012

SystemAdmin - Mon Jan 30 18:07:02 EST 2012

Here's a basic script that will uncheck the "Affect Change Bars" property on all non System and Non DXL type attribute definitions within a module. It assumes that you have access rights to modify these attribute definitions.
 

AttrType at
AttrDef ad
for ad in current Module do {
    if (ad.system) {
                print ad.name " [SYSTEM ATTR - No Change]\n\n" //Cannot modify built-in System attributes
                }
        elseif (ad.dxl) print ad.name " [DXL ATTR - No Change]\n\n" //Not applicable to DXL attributes
 
        else {
                ad = modify(ad, setBars, false) //Apply to Custom defined attributes only
                print ad.name " [CUSTOM ATTR - Change applied]\n\n"
                }
 
 }

 

 


Paul Miller
Melbourne, Australia

 

 

Thanks, works great